Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust API to be more consistent in specifying # spin electrons and target hamming weights #11

Merged
merged 6 commits into from
Sep 13, 2024

Conversation

caleb-johnson
Copy link
Collaborator

This PR adjusts a couple of the post-selection/subsampling functions to take the hamming weight of the right-hand side of the bitstring before the left-hand side. This aligns the non-chemistry portion of the API more with the chemistry portion, in that users can consistently pass the number of alpha electrons before the number of beta electrons throughout the workflow.

electrons and target hamming weights.

Co-authored-by: Kevin J. Sung <[email protected]>
@caleb-johnson caleb-johnson merged commit 0748ad2 into main Sep 13, 2024
9 checks passed
@caleb-johnson caleb-johnson deleted the flip-hamming branch September 13, 2024 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants